from rest_framework.views import APIView
from rest_framework.response import Response
from .models import VideoSeries
from .serializers import VideoSeriesSerializer


class VideoSeriesListView(APIView):
    def get(self, request):
        series = VideoSeries.objects.all()
        serializer = VideoSeriesSerializer(series, many=True)
        return Response(serializer.data)
